package chapter3;

class ExtendShow extends SuperShow {
    public static String s_str = "b";
    
    public String str = "ExtendStr";
    
    public void show(){
        System.out.println("Extend.show: " + str);
    }
    
    public void show2(SuperShow ss){
        System.out.println("show2(): " + ss.str);
    }
    
    public void a(){
        System.out.println("Extend.a()");
    }
    
    public static void main(String[] args){
        ExtendShow ext = new ExtendShow();
        SuperShow sup = ext;
        sup.show();
        ext.show();
        ext.show2(ext);
        System.out.println("sup.str = " + sup.str);
        System.out.println("ext.str = " + ext.str);
        ext.b();
        
        String str = "a";
        System.out.println(null instanceof String);
        Class<? extends String> clazz = str.getClass();
        System.identityHashCode(str);
    }

}
